<!DOCTYPE Html>
<html>
<head>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>UniTunes - Pesquisa Livros</title>
	
	<script type="text/javascript">
	
	var index = 0;
	
	$(window).scroll(function()
	{
	    if($(window).scrollTop() == $(document).height() - $(window).height())
	    {
			loadMore();
	    }
	});
	
	function loadMore()
	{
		exibePesquisa("livro", index, "4", false, $("#buscaString").val(), null);
		index = index + 4;
	}
	
			
	</script>	
	
</head>
<body>	
	
	<script>loadMore()</script>
	
	<div class="pesquisaTopArea"> 
		<div class="buscaArea">
			<input type="text" value="${buscaString}" id="buscaString"></input>
		</div>
		<div class="buttonArea">
			<button class="cadastroButton" onclick="busca( )">Busca</button>		
			<button class="cadastroButton" onclick="openWindow('${pageContext.request.contextPath}/livro/inclui')">Incluir</button>
		</div>		
	</div>
	
	
	<div id="postswrapper">

	</div>	
    <div id="loadmoreajaxloader" style="display:none;"><div><img src="img/ajax-loader.gif" /></div></div>

</body>
</html>

 